package com.moyun.websocket.model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.awt.*;

@Accessors(chain = true)
@Getter
@Setter
public class ChatMessage {
    private MessageType type;
    private String content;
    private String sender;

    /**
     * @Author yangboxuan
     * @Description 用于表示消息类型，分别为：聊天消息、上线消息以及下线消息
     * @Date 2021/6/25 0:14
     * @Param
     * @return
     */
    public enum MessageType{
        CHAT,
        JOIN,
        LEAVE
    }


}
